package com.zsh.weather.ln.home.ui.care.model

import com.zsh.weather.ln.app.App
import com.zsh.weather.ln.base.OnLoadDataListener
import com.zsh.weather.ln.db.AppDatabase
import kotlin.concurrent.thread

class CareModel {
    fun getCitys(onLoadDataListener: OnLoadDataListener){
        thread {
            var list = AppDatabase.getDatabase(App.instance).cityDao().loadCitys()
            onLoadDataListener.success(list)
        }
    }
}